import request from '@/utils/request'

// 查询福利兑换订单信息列表
export function listConvertOrder(query) {
  return request({
    url: '/film/convertOrder/list',
    method: 'get',
    params: query
  })
}

// 查询福利兑换订单信息详细
export function getConvertOrder(id) {
  return request({
    url: '/film/convertOrder/' + id,
    method: 'get'
  })
}

// 新增福利兑换订单信息
export function addConvertOrder(data) {
  return request({
    url: '/film/convertOrder',
    method: 'post',
    data: data
  })
}

// 修改福利兑换订单信息
export function updateConvertOrder(data) {
  return request({
    url: '/film/convertOrder',
    method: 'put',
    data: data
  })
}

// 删除福利兑换订单信息
export function delConvertOrder(id) {
  return request({
    url: '/film/convertOrder/' + id,
    method: 'delete'
  })
}
